Repository navigation
Release only by hand; the workflow makes the tag - #6
Merged
Merged
Conversation
A pushed tag no longer starts a release. Actions > Release > Run workflow takes a commit on master (empty: its head) and publish (off: a dry run). The check job reads the version from Cargo.toml of that commit, refuses a commit not on master and an existing tag. build.yml gets a ref input, so the build, the source archive and the release are of that commit. gh release create --target makes the tag on it. Assisted-by: Claude Opus 5.5
The Windows build failed the test layouts: git checked test/models and test/expected out with CRLF, and mocoal added lines with LF (the Diagram annotation before `end`, and the list of Diagram shapes), so 13 of 14 results had mixed line endings. A CRLF file on Windows got them too. - Source::newline: "\r\n" when the first line ends so, else "\n"; used by both insertions. - tests: models and expected files are read LF-normalised; each case is also laid out from a CRLF copy and must give the LF result with CRLF. Without the fix this fails on the same 13 cases. - .gitattributes: *.mo, *.rs, *.c, *.sh, *.md, *.svg with LF on every platform. MSL 4.1.0 (LF files): output unchanged against master (--svg, --keep). Assisted-by: Claude Opus 5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A release now starts only by hand; a pushed tag starts nothing.
Actions > Release > Run workflow, inputs:
commit: the commit to release, on master. Empty: the head of master.publish: make the tag and the release. Off (the default): a dry run.Jobs:
check: resolves the commit, refuses one that is not on master, reads the version from itsCargo.toml, refuses an existing tagv<version>when publishing.build(build.yml, all platforms) andsourcesbuild that commit: build.yml gets arefinput for it. Push and pull-request builds are unchanged (emptyref).release: only withpublish.gh release create v<version> --target <commit>makes the tag on the commit and the release with the 6 archives, the source archive and SHA256SUMS.The inputs reach the shell only through environment variables. Tried locally on the check step: empty commit gives e2fea16 and v0.1.0;
91634f1is accepted;nosuchand$(touch /tmp/x)are refused as "no such commit" (nothing runs); de9b5ff (squash-merged branch) is refused as not on master. actionlint clean. This pull request runs the workflow as a dry run.README "Release" describes the run by hand.
The branch includes master 15941bf (README: Chain and Drive in OMEdit after the layout; models need no graphical annotations).
Windows fix (the dry run failed on windows-x86_64 in the test
layouts): git checked the test files out with CRLF, and mocoal added lines with LF, so 13 of 14 results had mixed line endings; a CRLF file of a Windows user got them too. mocoal now uses the line ending of the file (Source::newline) for the lines it adds; the test reads files LF-normalised and also lays out a CRLF copy of each model;.gitattributeskeeps text files LF. MSL 4.1.0 output unchanged.